package com.zzyl.mapper;

import com.zzyl.entity.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 客户端
 */
@Mapper
public interface MemberMapper {
    /**
     * 根据openid查询客户
     * @param openid
     * @return
     */
    Member showMemberByOpenid(String openid);

    /**
     * 变更手机号
     * @param phone
     * @param openid
     */
    void updatePhoneByOpenId(@Param("phone") String phone, @Param("openid") String openid);

    /**
     * 添加新用户
     * @param member
     */
    void insertMember(Member member);
}
